<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="../script/jquery-3.6.0.js"></script>
 <script type="text/javascript">
/*window.onload=function (){
  var object=document.getElementById("butId");
    object.onclick=function (){
     alert("点击了按钮")

}*/
$(function (){
    alert("fje")

})
$(function (){
    var $btnObj=$("#butId");//表示按id查询对象
    $btnObj.click(function (){
$(function (){
    var $zhi=$("#test:checked").val()

    if($zhi!=null){
        alert($zhi)
    }
})
    })
});
  </script>

</head>
<body>
<div id="two">

</div>
<h1>HeloWord!</h1>
<form>
    <input type="button" value="点击立即注册" id="butId">
    <button id="one"></button>按钮1</button>
    <button>按钮2</button>
    <button>按钮3</button>
    <input type="radio" value="企鹅" id="test">企鹅
    <select id="tree">
        <option>5</option>
        <option selected="selected">7</option>
    </select>
    <input type="text" id="text" value="附件二">
</form>
</body>
</html>